# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corefm
pkgver=4.3.0
pkgrel=0
pkgdesc="A lightweight file-manager from C-Suite"
# armhf blocked by qt5-qtdeclarative
# s390x and riscv64 blocked by polkit
arch="all !armhf !s390x !riscv64"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libcsys-dev qt5-qtmultimedia-dev cmake ninja"
source="https://gitlab.com/cubocore/corefm/-/archive/v$pkgver/corefm-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build -GNinja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
484207bd6882beb10f7462c50bb340f8a6aa203de8558aac9c6f5f5762c6e713aeff0ec69d413a0206ba4b051a006bbf179499539eee1089f5d853f41c077afa  corefm-v4.3.0.tar.gz
"
